﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace TY_WinApp.Wrapper
{
   public class GcImg
    {
        //将一幅输入的原始图像处理成RGB格式的图像，用于位图图像显示
        //nID为设备ID值，范围从1～32
        //pDestBuffer 输出图像缓存区，大于等于一幅图像大小
        //pSrcBuffer 输入图像缓存区，大于等于一幅图像大小
        [DllImport("Lib/gcImg.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gcProcess")]
        public static extern void GcProcess(Byte nIndex, IntPtr pDestBuffer, IntPtr pSrcBuffer);
    }
}
